package org.example.code.service.impl;

import org.example.code.service.CodeFeignService;
import org.springframework.stereotype.Component;

/**
 * Description: CodeFeignServiceImpl
 * Author: e
 * CreateDate: 2021-05-31
 */
@Component
public class CodeFeignServiceFallback implements CodeFeignService {
    /***
     * 生成验证码并发送到对应邮箱，成功true，失败false
     *
     * @param email*/
    @Override
    public boolean create(String email) {
        return false;
    }

    /***
     * 校验验证码是否正确 0 正确，1错误，2 超时
     *
     * @param email
     * @param code*/
    @Override
    public int validate(String email, String code) {
        return -1;
    }

    /***
     * 更新状态
     *
     * @param code*/
    @Override
    public boolean updateStatus(String code) {
        return false;
    }
}
